<template>
	<view class="main">
		<view class="status">
			<image class="success_icon" src="@/static/img/my/success.png" mode=""></image>
			<view class="fz46 bold mt60">您的申请已提交</view>
			<view class="remark flex_center_align">
				<text>申请成功后，工作人员将会联系您</text>
			</view>
		</view>

		<view class="btn flex_center_align" @click="goBack">
			确认
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			path: ''
		}
	},
	methods: {
		goBack() {
			if (this.path == 0) {
				uni.redirectTo({
					url: '/pages/sign/sign'
				})
			} else if (this.path == 1) {
				uni.switchTab({
					url: '/pages/my/index/index'
				})
			} else {
				uni.redirectTo({
					url: '/pages/my/homePage/edit'
				});
			}

		},
	},
	onLoad(e) {
		this.path = e.path
	},
}
</script>

<style lang="scss" scoped>
.main {
	position: relative;
	min-height: 100vh;
	background-color: #fff;
	padding: 55rpx 35rpx 50rpx;

	.status {
		padding-top: 112rpx;
		text-align: center;

		.success_icon {
			width: 306rpx;
			height: 280rpx;
		}

		.remark {
			font-size: 30rpx;
			color: #777;
			margin-top: 20rpx;
		}
	}

	.btn {
		color: #fff;
		font-size: 30rpx;
		width: 630rpx;
		height: 90rpx;
		background: #1C87F3;
		border-radius: 45rpx;
		margin: 340rpx auto 30rpx;
	}
}
</style>
